I"ve played around with a script to display in a DXL Layout column the count of the number of characters in the Object Text of an object. I've tried tweaking it several different ways, but keep coming up with error messages along the lines of "incorrect use of the function "stringOf". Here's my broken code: Object o = current Buffer textBuffer = create int iBuffLength = 0 textBuffer = richTextNoOle o."Object Text" iBuffLength = length(textBuffer) string s = stringOf (iBuffLength) displayRich s ""
ChrisAnnal - Thu Jul 14 14:15:25 EDT 2011 |
Re: Display Number of Characters in Object Text |
Re: Display Number of Characters in Object Text OurGuest - Thu Jul 14 14:27:10 EDT 2011 P.S. (I also left out the line where I delete the buffer at the end). Chris Annal SW Test Engineer / DOORS Database Administrator Sensis Corporation, East Syracuse, New York chrisa@sensis.com |
Re: Display Number of Characters in Object Text
There is no such function "string stringOf(int)". Object o = current Buffer textBuffer = create int iBuffLength = 0 textBuffer = richTextNoOle o."Object Text" iBuffLength = length(textBuffer) string s = iBuffLength "" // << change here displayRich s delete(textBuffer) //<< don't forget this
string Text = obj."Object Text" display "Text length: " (length(Text)) ""
|
Re: Display Number of Characters in Object Text llandale - Thu Jul 14 14:57:59 EDT 2011
There is no such function "string stringOf(int)". Object o = current Buffer textBuffer = create int iBuffLength = 0 textBuffer = richTextNoOle o."Object Text" iBuffLength = length(textBuffer) string s = iBuffLength "" // << change here displayRich s delete(textBuffer) //<< don't forget this
string Text = obj."Object Text" display "Text length: " (length(Text)) ""
Chris Annal SW Test Engineer / DOORS Database Administrator Sensis Corporation, East Syracuse, New York chrisa@sensis.com |